<?php

namespace App\Kuafu\User\Validate;

use App\Kuafu\Base\Validate\BaseValidate;
use Illuminate\Http\Request;

class UserRoleValidate extends BaseValidate
{
    public static function getUserRole(Request $request)
    {
        $rules = [
            'shopId'  => [
                'required',
                'integer',
                'min:0'
            ],
            'brandId' => [
                'required',
                'integer',
                'min:0'
            ],
            'userId'  => [
                'required',
                'integer',
                'min:0',
            ]
        ];

        $messages = [];

        return self::validateCheck($request->all(), $rules, $messages);
    }
}
